// btn
const { BaseBehavior, COMPONENT_OPTIONS } = require('../../mixins/component');

Component({
    behaviors: [BaseBehavior],
    options: {
        ...COMPONENT_OPTIONS,
    },
    properties: {
        text: {
            type: String,
            value: '',
        },
        isDisable: {
            type: Boolean,
            value: false,
        },
    },
    data: {

    },
    methods: {
        handleTap: function () {
            const { isDisable } = this.data;
            if (isDisable) return;
            this.triggerEvent('click');
        },
    }
})
